package com.kaifamiao.schema;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

// MethodBeforeAdvice接口 继承了 org.springframework.aop.BeforeAdvice 接口，
// org.springframework.aop.BeforeAdvice 接口 继承了 org.aopalliance.aop.Advice
public class PandaBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        String name = method.getName();
        System.out.println( "【" + name + "】方法即将执行" );
    }

}
